package pc2brick;

public class BTLife extends Thread {
	private BTDialog bt;
	private boolean running;
	
	public BTLife(BTDialog bt)
	{
		this.bt = bt;
		this.running = true;
	}
	
	public void run(){
		while (bt.isAlive() && this.running)
		{
			bt.send('_');
			try {
				Thread.sleep(2000);
			} catch (InterruptedException e) {
			}
		}
	}
	
	public void kill()
	{
		this.running = false;
	}
}
